Skip to main content

AlphabeticOrder

AlphabeticOrder["string1","string2"] gives 1 if "string1" appears before "string2" in alphabetical order, -1 if it is after, and 0 if it is identical. 

AlphabeticOrder["string1","string2",lang] uses an ordering suitable for the language lang.

AlphabeticOrder[lang] represents an operator form that compares strings when applied to "string1", "string2".

Please visit the official Wolfram Language Reference for more details and examples on core symbols.